from django.urls import path
from apps.account_info import views
from django.contrib.auth.decorators import login_required

app_name = 'account_info'

urlpatterns = [
    #我的X袋
    path('', views.Udai_welcome.as_view(), name='udai_welcome'),
    #个人资料
    path("udai_setting/", views.Udai_setting.as_view(), name='udai_setting'),
    #资金管理
    path('udai_treasurer/', views.Udai_treasurer.as_view(), name='udai_treasurer'),
    #积分平台
    path('udai_integral/', views.Udai_integral.as_view(), name='udai_integral'),
    #收货地址
    path('udai_address/', views.Udai_address.as_view(), name='udai_address'),
    #修改已经保存的收货地址
    path('udai_address_edit/', views.Udai_address_edit.as_view(), name='udai_address_edit'),
    #我的优惠劵
    path('udai_coupon/', views.Udai_coupon.as_view(), name='udai_coupon'),
    #修改支付密码
    path('udai_paypwd_modify/', views.Udai_paypwd_modify.as_view(), name='udai_paypwd_modify'),
    #修改登录密码
    path('udai_pwd_modify/', views.Udai_pwd_modify.as_view(), name='udai_pwd_modify'),
    #支付宝支付
    path('zfb_pay/', views.ZFB_Pay.as_view(), name='pay'),
    #修改支付密码1
    path('udai_modifypay_step/', views.Udai_modifypay_step.as_view(), name='udai_modifypay_step'),
    # 修改支付密码2
    path('udai_modifypay_step2/', views.Udai_modifypay_step2.as_view(), name='udai_modifypay_step2'),
    # 修改支付密码3
    path('udai_modifypay_step3/', views.Udai_modifypay_step3.as_view(), name='udai_modifypay_step3'),
    #修改登录密码1
    path('udai_modifypwd_step1/', views.Udai_modifypwd_step1.as_view(), name='udai_modifypwd_step1'),
    #修改登录密码2
    path('udai_modifypwd_step2/', views.Udai_modifypwd_step2.as_view(), name='udai_modifypwd_step2'),
    #修改登录密码3
    path('udai_modifypwd_step3/', views.Udai_modifypwd_step3.as_view(), name='udai_modifypwd_step3'),
    path('sms_send/', views.sms_send, name='sms_send'),  # 发送短信接口
    path('sms_check/', views.sms_check, name='sms_check'),  # 短信验证码验证接口
]